<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var arr = [1, 3, 6];
			var obj = [
				{
					id: 1,
					name: 'zs'
				},
				{
					id: 2,
					name: 'zs'
				},
				{
					id: 3,
					name: 'zs'
				},
				{
					id: 4,
					name: 'zs'
				},
				{
					id: 5,
					name: 'zs'
				},
				{
					id: 6,
					name: 'zs'
				},
			];
			obj.map((item, index)=>{
				// console.log(item)
				arr.forEach((itemVal, indexVal)=>{
					// console.log(itemVal)
					if(item.id == itemVal){
						// console.log(itemVal)
						obj.splice(index, 1)
					}
				})
			})
			console.log(obj)
		</script>
	</body>
</html>
